@import url(../StockFixedAssets/components/index.less);

.scrollTable {
  width: 50%;
  margin-right: 24px;
  margin-top: -4px;

  :global {

    .ant-table-container {
      // transform: scale(.83);
      // transform-origin: 100% 0;
      zoom: 0.83;

      table {
        border-radius: unset;
      }

      .ant-table-thead>tr>th,
      .ant-table-tbody>tr>td {
        padding: 0;
        font-size: 12px;
        color: #35425E;
        text-align: center;
        line-height: 20px;
        height: 24px;
        border-bottom: 1px solid #CED7E8 !important;
        border-right: 1px solid #CED7E8 !important;
      }

      .ant-table-tbody>tr>td:not(:first-child) {
        // padding-right: 15.5%;
        text-align: right;
        >span{
          font-size: 12px;
        }
      }

      .ant-table-thead>tr>th:nth-child(1),
      .ant-table-tbody>tr>td:nth-child(1) {
        // border-right: 1px solid #CED7E8;
        border-left: 1px solid #CED7E8;
      }

      .ant-table-thead {
        border-right: 1px solid #CED7E8;
        border-left: 1px solid #CED7E8;
      }

      .ant-table-thead>tr>th {
        font-weight: 600;
        background-color: #EDF0F5;
        border-top: 1px solid #CED7E8;
      }

      .ant-table-tbody>tr>td:nth-child(1) {
        background-color: #F5F6F9;
      }

      tr:hover {
        background-color: white;
      }

      tr:hover:not(.ant-table-expanded-row)>td,
      .ant-table-row-hover,
      .ant-table-row-hover>td {
        background: white;
      }

      tr:hover>td:nth-child(1) {
        background-color: #F5F6F9;
      }
    }

    .ant-empty-normal {
      margin: 46px 0;
    }

    .ant-table-empty {
      .ant-table-placeholder {
        >td {
          background-color: #fff !important;
          border-left: 1px solid #E4E4E4 !important;
        }
      }
    }
  }
}

.redRow {
  :global {
    td {
      color: #E64A00 !important;
      font-weight: bold;
    }
  }
}

.bottom_text {
  transform-origin: left;
  margin-left: 6px;
  span,p{
    font-size: 12px;
  }
}

.bottom_desc {
  transform: scale(0.83);
  transform-origin: left;
  margin-left: 10px;
  opacity: 0.7;
}

.title_remark{
  font-weight: 400;
  font-size: 12px;
  color: #35425E;
  line-height: 28px;
  transform: scale(.83);
  transform-origin: left center;
  // margin-top: 12px;
}
.head_container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  .head_title{
    display: flex;
    align-items: center;

  }
}
.setting_button {
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F6F8;
  border-radius: 2px;
  border: none;
  box-shadow: none;

  &:hover {
    background: #F8F9FC;
  }

  &:active {
    background: #ECEEF2;
  }

  
  >img{
    width: 14px;
    height: 14px;
    display: inline-block;
    background-position: 50%;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
}
.table_container{
  margin-top: 5px;
  :global{
    .ant-table-wrapper{
      .ant-table-container{
        // border-top:none;
        border-top: 1px solid #E4E4E4;
        .ant-table-thead > tr > th{
          padding: 0 !important;
          border-bottom: 1px solid #E4E4E4;
          border-right: 1px solid #E4E4E4 !important;
          min-width: max-content;
        }
      }
      .ant-table-tbody > tr > td{
        border-right: 1px solid #E4E4E4 !important;
      }
      
    }
  }
}
.table_title{
  // min-width: 100px;
  width: 100%;
  background: #edf0f5;
  >p{
    margin: 0;
    text-align: center;
    &:nth-child(1){
      
      border-bottom: 1px solid #E4E4E4;
      line-height: 24px;
      padding: 0 8px;
    }
    &:nth-child(2){
      font-size: 12px;
      zoom: .83;
      line-height: 16px;
      height: 16px;
      // padding: 0 8px;
    }
  }
}
.special_td{
  display:flex;
  justify-content: space-between;
  align-items: center;
  // text-align: justify;
 
  
}
.left,
  .right >em:nth-child(2){
    vertical-align: middle;
    white-space: nowrap;
    // width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .left{
    // width: calc(37.5% - 8px);
    width: 36.5%;
    vertical-align: middle;
    display: inline-block;
    text-align: right;
  }
  .right{
    // width: calc(62.5% - 8px);
    width: 63.5%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    vertical-align: middle;
    em{
      font-style: normal;
      white-space: pre;

    }
  }
.popoverStyle {
  border-radius: 2px;

  :global {
    .ant-popover-content {
      .ant-popover-arrow-content {
        background-color: #2B2F3C;
      }

      .ant-popover-inner {
        background-color: #2B2F3C;

        .ant-popover-inner-content {
          padding: unset;
        }
      }
    }
  }
}
.scrollTableConvertible{
  :global{
    .ant-table-container{
      border: 1px solid #E4E4E4;
    }
    .ant-table-tbody > tr:last-child > td {
      border-bottom:1px solid #E4E4E4 !important;
  }
  }
}